//
// Console.h
// Usage: Console driver define
// CreateDate: 2009-06-04
// Author: MaJiuyue
//
#ifndef _CONSOLE_H_
#define _CONSOLE_H_

#include "Driver.h"
#include "vgadrv.h"
#include "kbdrv.h"

class CConsoleDriver : public CDriver
{
	friend int StaticWrite(int file, char *ptr, int len);
public:
	virtual int InitializeDriver();
	virtual int Shutdown();
	virtual void irq_handler(u16 IRQ);

protected:
	bool doRead(RequestPackage *IRP, int *ret);
	bool doWrite(RequestPackage *IRP, int *ret);

private:
	CVGADriver vga;
	CKeyboardDriver kb;

	//char * out_buf;
};

#endif

